package com.k.designpattern.creational.builder.beanbuilderchain;

/**
 * @author k
 */
public class Dog {
    private Long id;
    private String name;
    private String color;

    public Long getId() {
        return id;
    }

    public Dog setId(Long id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Dog setName(String name) {
        this.name = name;
        return this;
    }

    public String getColor() {
        return color;
    }

    public Dog setColor(String color) {
        this.color = color;
        return this;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }
}
